feat: support reading AsyncAPI documents from stdin using "-" (#2011) - #2136
feat: support reading AsyncAPI documents from stdin using "-" (#2011)#2136useye wants to merge 1 commit into
Conversation
|
|
|
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |



Summary
Added support for reading AsyncAPI documents from stdin by passing
-as the file argument.This follows the widely-used Unix convention where
-represents stdin/stdout.Changes
Specification.fromStdin()method that reads fromprocess.stdinload()function to detect-as the special stdin indicatorUsage Examples
Error Handling
If stdin is empty, a clear error message is shown: "Not enough non-option arguments: expected at least one"
Related Issue
Fixes #2011